package arithmetic1.tiantisai;

import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;

/*
    数字统计
 */
public class Demo02 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int num = scanner.nextInt();
        String strNum=num+"";
        Map<Character,Integer> map=new TreeMap<>();
        for(int i=0;i<strNum.length();i++){
            if(map.get(strNum.charAt(i))==null){
                map.put(strNum.charAt(i),1);
            }else{
                map.put(strNum.charAt(i),map.get(strNum.charAt(i))+1);
            }
        }
        for(Character key:map.keySet()){
            System.out.println(key+":"+map.get(key));
        }
    }
}
